﻿CREATE TABLE [dbo].[LoginJL] (
    [id]              INT            IDENTITY (1, 1) NOT FOR REPLICATION NOT NULL,
    [loginname]       NVARCHAR (50)  NULL,
    [loginuserid]     VARCHAR (50)   NULL,
    [userCompanyId]   INT            NULL,
    [userComapnyName] NVARCHAR (500) NULL,
    [logindate]       DATETIME       CONSTRAINT [DF_LoginJL_logindate] DEFAULT (getdate()) NULL,
    [IP]              VARCHAR (50)   NULL,
    [memo]            NVARCHAR (500) CONSTRAINT [DF_LoginJL_memo_1] DEFAULT ('') NULL,
    CONSTRAINT [PK_LoginJL] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
CREATE NONCLUSTERED INDEX [IX_LoginJL_logindate]
    ON [dbo].[LoginJL]([logindate] ASC);


GO
CREATE NONCLUSTERED INDEX [IX_LoginJL_loginname]
    ON [dbo].[LoginJL]([loginname] ASC);


GO
CREATE NONCLUSTERED INDEX [IX_LoginJL_IP]
    ON [dbo].[LoginJL]([IP] ASC);


GO
CREATE NONCLUSTERED INDEX [EFS_IX_LoginJL_f15a9a58daef41958dfdcf3f3c4ad020]
    ON [dbo].[LoginJL]([loginuserid] ASC, [IP] ASC);


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'登录过的账号', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'LoginJL', @level2type = N'COLUMN', @level2name = N'memo';

